package com.yun.controller;


import com.yun.Vo.ResultMessasge;
import com.yun.service.NavService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Nav")
@CrossOrigin
public class NavController {
    @Autowired
    private NavService navService;
    @GetMapping("/getNavList")
    public ResultMessasge getNavList(){
        return ResultMessasge.success(navService.findRightsList());
    }
}
